//检查分页列表页面页码输入框
function checkCurrentPage(input, totalPages) {
	if (!input.match(/^\d*$/)) {
		alert("只能输入数字");
		document.getElementById("jumpPageBox").value = document
				.getElementById("pages").value;
		document.getElementById("jumpPageBox").focus();
	} else if (input > totalPages || parseInt(input) <= 0) {
		alert("对不起,你输入的页码有误!");
		document.getElementById("jumpPageBox").value = document
				.getElementById("pages").value;
		document.getElementById("jumpPageBox").focus();
	}
}
//去掉前后空格
function trim(s) {
	try {
		return s.replace(/(^\s*)|(\s*$)/g, "");

	} catch (e) {
		return s;
	}
}
//给列表中id为changecolor的那些行变色
$(document).ready(function() {
	$("table tbody tr[id*='changecolor']").mouseover(function() {
		$(this).css("background", "orange");
	}).mouseout(function() {
		$(this).css("background", "white");
	})
});